package com.xomily.devops.agent.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @version V1.0
 * @ClassName: DevProgramLog.java
 * @author: xomily (2327742507@qq.com)
 * @date: 2021年12月02日
 * @Description: DevProgramLog.java
 * @Copyright: 2021-2022 www.xomily.com. All rights reserved.
 */
public class DevProgramLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 进程ID */
    private Long programId;

    /** cpu使用率 */
    private BigDecimal cpuRate;

    /** 内存使用率 */
    private BigDecimal memRate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProgramId(Long programId) 
    {
        this.programId = programId;
    }

    public Long getProgramId() 
    {
        return programId;
    }
    public void setCpuRate(BigDecimal cpuRate) 
    {
        this.cpuRate = cpuRate;
    }

    public BigDecimal getCpuRate() 
    {
        return cpuRate;
    }
    public void setMemRate(BigDecimal memRate) 
    {
        this.memRate = memRate;
    }

    public BigDecimal getMemRate() 
    {
        return memRate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("programId", getProgramId())
            .append("cpuRate", getCpuRate())
            .append("memRate", getMemRate())
            .append("createTime", getCreateTime())
            .toString();
    }
}
